package user;

import book.BookList;
import ioParation.IoParation;

public abstract class User {
    protected String name;
public IoParation[]ioParations;//1.建立数组  继承 在子类重写 多态
    public User(String name) {
        this.name = name;
    }
    public abstract int menu();
    public void doOperation(int choice, BookList bookList){
      ioParations[choice].work(bookList);
    }
}
